package com.ridanlabs.professorwebsite.validation;

import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;

public class UnEmptyStringValidator implements ConstraintValidator<UnEmptyString, String>{
	@Override
	public void initialize(UnEmptyString constraintAnnotation) {}

	@Override
	public boolean isValid(String value, ConstraintValidatorContext context) {
		if( value.isEmpty() )
			return false;
		
		return true;
	}

}
